aggregation should take the top N of one group by a count without reading every group